import axios from 'axios'
axios.defaults.baseURL = 'http://localhost:3000/'
axios.interceptors.request.use((config) => {
  let token = window.sessionStorage.getItem('token')
  if (token) config.headers.authorization = token
    return config
  })

export default axios